﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Internal.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    新建进货单
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptStyleCOntent" runat="server">
    <script type="text/javascript">
        function showMessage() {
            alert("提交成功!等待审核");
        }
        function addMaterial() {
            var htmlSegment = "<table  cellpadding='10'>";
            htmlSegment += "<tr>";
            htmlSegment += "<td>";
            htmlSegment += "物料型号&nbsp;";
            htmlSegment += "<select>";
            htmlSegment += "<option>0.15mm蚀刻铜片</option>";
            htmlSegment += "<option>圆管</option>";
            htmlSegment += "<option>回形针</option>";
            htmlSegment += "</select>";
            htmlSegment += "</td>";
            htmlSegment += "<td>";
            htmlSegment += "数量&nbsp;";
            htmlSegment += "<input type='text' size='5' />";
            htmlSegment += "</td>";
            htmlSegment += "<td>";
            htmlSegment += "价格&nbsp;";
            htmlSegment += "<input type='text' size='5' />";
            htmlSegment += "</td>";
            htmlSegment += "<td>";
            htmlSegment += "付款方式&nbsp;";
            htmlSegment += "<input type='text' size='5' />";
            htmlSegment += "</td>";
            htmlSegment += "<td>";
            htmlSegment += "交货日期&nbsp;";
            htmlSegment += "<input type='text' size='5' />";
            htmlSegment += "</td>";
            htmlSegment += "</tr>";
            htmlSegment += "</table>";

            document.getElementById("materialContainer").innerHTML += htmlSegment;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        进货单条码:&nbsp;10000200000103&nbsp;&nbsp;&nbsp; 创建者:&nbsp;刘国锋
    </p>
    <div id="materialContainer">
        <table cellpadding="10">
            <thead>
                <tr>
                    <td>
                        物料型号
                    </td>
                    <td>
                        数量
                    </td>
                    <td>
                        价格
                    </td>
                    <td>
                        付款方式
                    </td>
                    <td>
                        交货日期
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <span id="spanSelected"></span>
                        <a href="#" onclick="popUp('#spanSelected');">选择</a>
                    </td>
                    <td>
                        <input type="text" size="2" />
                    </td>
                    <td>
                        <input type="text" size="2" />
                    </td>
                    <td>
                        <input type="text" size="5" />
                    </td>
                    <td>
                        <input type="text" size="6" onclick="setday(this);" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <p>
        <input type="button" value="添加物料" onclick="addMaterial()" />
    </p>
    <p>
        <input type="button" value="提交" onclick="showMessage()" />
    </p>
</asp:Content>
